package com.youdoneed.news.common.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.youdoneed.news.common.config.AppConfig;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 说明。
 *
 * @author Ewing
 * @date 2017/4/24
 */
@Component
public class MyTask {
    private static final Logger LOGGER = LoggerFactory.getLogger(MyTask.class);

    @Scheduled(fixedRate = 60000)
    public void nowTime() {
        //LOGGER.info("现在是北京时间：" + new SimpleDateFormat(AppConfig.DATE_TIME_FORMAT).format(new Date()));
    }

}
